package com.lyy.service;

import com.github.pagehelper.PageInfo;
import com.lyy.entity.Banner;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author Liangyaoyun
 */
public interface BannerService {
    int insertByBannerId(Banner banner);
    int updateByBannerId(Banner banner);
    int deleteByBannerId(Integer bannerId);
    int deleteByBannerIds(List<Integer> bannerId);
    Banner selectByBannerId(Integer bannerId);
    List<Banner> selectAllBanner();
    PageInfo<Banner>selectBypage(Integer pageNumber,Integer pageSize);
    /**
     * 上传轮播图片
     *
     * @param bannerFile 轮播图片
     * @param bannerId   轮播图主键
     * @return 影响条目数
     */
    int uploadBanner(MultipartFile bannerFile, Integer bannerId);
}
